package com.example.model;

import lombok.Data;

import java.util.Date;

@Data
public class OrderInfoP {

    public OrderInfoP(OrderInfo orderInfo) {
        this.id = orderInfo.getId();
        this.userId = orderInfo.getUserId();
        this.num = orderInfo.getNum();
        this.price = orderInfo.getNum();
        this.deleteFlag = orderInfo.getDeleteFlag();
        this.createTime = orderInfo.getCreateTime();
        this.updateTime = orderInfo.getUpdateTime();
    }
    private Integer id;
    private Integer userId;
    private ProductInfo productInfo;
    private Integer num;
    private Integer price;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;
}
